<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="head.html"/>
</head>
<body>
	
	<jsp:include page="menu.html"/>
	<div id="content">
		<h2><c:out value="${title}"/></h2>
		<p><c:out value="${message}"/></p>
		<table class="listing">
			<colgroup>
				<col class="buttoncell"/>
				<col class="buttoncell"/>
				<col/>
				<col/>
				<col/>
			</colgroup>
			<tbody>
				<tr>
					<th></th>
					<th></th>
					<th style="text-align:center">Artikel</th>
					<th style="text-align:center">LagerTyp</th>
					<th style="text-align:center">Barcode</th>
					<th style="text-align:center">Vorrat</th>
					<th style="text-align:center">Mindestbestand</th>
				</tr>
				<c:forEach items="${vorrat}" var="vorrat">
					<tr>
						<td>
							<a href="EditVorrat.s?id=<c:out value="${vorrat.id}"/>">
								<img src="images/button_edit.png" alt="Icon - Bearbeite Vorrat"/>
							</a>
						</td>
						<td>
							<a href="LoescheVorrat.s?id=<c:out value="${vorrat.id}"/>">
								<img src="images/button_drop.png" alt="Icon - Lösche Vorrat"/>
							</a>
						</td>
						
<!-- 						<td> -->
<%-- 							<a href="EditArtikel.s?id=<c:out value="${vorrat.artikelId}"/>"> --%>
<%-- 								<c:out value="${vorrat.artikelName}"/> --%>
<!-- 							</a> -->
<!-- 						</td> --> 
						<td>
							<a href="EditVorrat.s?id=<c:out value="${vorrat.id}"/>"> 
								<c:out value="${vorrat.artikel.name}"/> 
							</a>
						</td>
						<td><c:out value="${vorrat.lagertyp.lagertypbezeichnung}"/></td>
						<td><c:out value="${vorrat.artikel.barcode}"/></td>
						<td style="text-align:center"><c:out value="${vorrat.anzahl}"/></td>
						<td style="text-align:center"><c:out value="${vorrat.artikel.mbestand}"/></td>						
					</tr>
				</c:forEach>  
			</tbody>
		</table>
	</div>
	<div style="position:absolute; top:440px; left:860px">
        <img src="images/klemmbrett.png" alt="Lagerbestand"/>        
	</div>
</body>
</html>  